SC_SetupObjectFromFile

SYNTAX
SC_SetupObjectFromFile objNum , GroupNum , Filename

-objNum: the object you want to setup
-groupNum: the group that you want this object to belong to (0 for no group)
-filename: the file that contains the collision data to use for this object.
This could be from a different object that was loaded normally and
had the SC_SaveCollisionObject command applied

This command sets up an object for ray casting, object collision, and sliding collision, it need
only be called once for each object. This command will NOT work when the object has been scaled before
calling it. To use a scaled object in collision first setup the object then use the SC_allowObjectScaling
command. After this scale the object using normal DarkBasic commands and then use SC_UpdateObject
to update the object.

setupObjectFromFile can be sucessfully called on an existing object, doing so
will overwrite any stored collision data with the new object's data and reset collision to ON
and scaling to False.


RELATED INFO
Collision Commands Menu
Index